package com.csx.base.concurrency.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * <p> what does this class do ? </p>
 * <p> How does it work ?</p>
 * <p> Why does it do this ?</p>
 *
 * @author cuisongxu
 * @date 2024/12/2 周一 10:05
 */
public class TimeUtil {

    private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    public static String getNowTimeStr() {
        LocalDateTime now = LocalDateTime.now();
        String nowTime = now.format(formatter);
        return nowTime;
    }
}
